﻿define(["service/service", "service/httpService"], function (service) {
    service.factory("memberService", function (httpService) {
        var methods = {
            "gets": function (params) {
                return httpService.get("/admin/member/gets", params);
            },
            "get": function (params) {
                return httpService.get("/admin/member/get", params);
            },
			"update": function (params) {
				return httpService.post("/admin/member/update", params);
			},
			"add": function (params) {
				return httpService.post("/admin/member/add", params);
			},
			"delete": function (id) {
				return httpService.delete("/admin/member/delete/" + id);
			},
			"disable": function (params) {
				return httpService.post("/admin/member/disable", params);
			},
			"audit": function (params) {
				return httpService.post("/admin/member/audit", params);
			},
			"changepwd": function (params) {
				return httpService.post("/admin/member/changepwd", params);
			}
        }
        return methods;
    });
});